﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PurchaseDeal_detail.aspx.cs"
    Inherits="Hospital_PurchaseDeal_detail" %>

<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>采购详情</title>
    <link href="../styles/css.css" rel="stylesheet" type="text/css">

    <script language="vbscript" src="../Common/yz.vbs"></script>

    <script language="vbscript">
    	Function CheckForm1()
		Dim bolSubmit
		bolSubmit = True
		Dim txtInput
		dim i
		 
		Set txtInput = document.all("tabData1").all.tags("Input")

		'msgbox "“" 
	    For i = 0 To txtInput.length - 1
		    If IsNull(txtInput(i).getAttribute("NumericOnly")) = False Then
			    If Len(txtInput(i).value) > 0 Then
				    If IsNumeric(txtInput(i).value) = False Then
					    msgbox "“" & txtInput(i).getAttribute("NumericOnly") & "”必须输入数字！",16,"修改档案"
					    txtInput(i).select()
					    txtInput(i).focus()
					    bolSubmit = False
					    CheckForm1 = False
					    Exit For
				    End If
			    End If
		    End If
		    If IsNull(txtInput(i).getAttribute("NotNull")) = False Then
			    If Len(Trim(txtInput(i).value)) = 0 Then
				    msgbox "“" & txtInput(i).getAttribute("NotNull") & "”必须输入！",16,"警告"
				    txtInput(i).select()
				    txtInput(i).focus()
				    bolSubmit = False
				    CheckForm1 = False
				    Exit For
			    End If
		    End If
		    If IsNull(txtInput(i).getAttribute("DateTimeOnly")) = False Then
			    If Len(txtInput(i).value) > 0 Then
				    If IsDate(txtInput(i).value) = False Then
					    msgbox "“" & txtInput(i).getAttribute("DateTimeOnly") & "”必须输入日期！",16,"修改档案"
					    txtInput(i).select()
					    txtInput(i).focus()
					    bolSubmit = False
					    CheckForm1 = False
					    Exit For
				    End If
			    End If
		    End If

		    If IsNull(txtInput(i).getAttribute("InvertedComma")) = False Then
			    If Len(txtInput(i).value) > 0 Then
				    If InStr (txtInput(i).value,"'") >0Then
					    msgbox "“" & txtInput(i).getAttribute("InvertedComma") & "”含有非法字符 ' 请重新输入！",16,"修改档案"
					    txtInput(i).select()
					    txtInput(i).focus()
					    bolSubmit = False
					    CheckForm1 = False
					    Exit For
				    End If
			    End If
		    End If
	    Next
		
	End Function
	
    </script>

</head>
<body>
    <form id="form1" runat="server" defaultbutton="found">
        <div>
            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width: 4px">
                        <img src="../images/intro_left.gif" width="4" height="34"></td>
                    <td class="intro_wordbg">
                        采购详情</td>
                    <td background="../images/intro_bg.gif">
                        <img src="../images/intro_right.jpg" width="118" height="34"></td>
                </tr>
            </table>

            <script language="javascript" src="../common/javascript/calendar.js" type="text/javascript"></script>

            <table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table_table2">
                <tr>
                    <td class="table_td3" style="width: 143px; height: 28px;">
                        采购医院</td>
                    <td class="table_td2" style="height: 28px; width: 199px;">
                        <span style="color: #ff6666">
                            <asp:Label ID="LabHospital" runat="server" Text="Label" Width="163px"></asp:Label></span></td>
                    <td class="table_td3">
                        采购单名称</td>
                    <td class="table_td2" style="height: 28px; width: 230px;">
                        <span style="color: #ff6666">
                            <asp:Label ID="txtPlanName" runat="server" Text="Label" Width="163px"></asp:Label></span></td>
                </tr>
                <tr>
                    <td class="table_td3" style="width: 143px">
                        开始配送时间</td>
                    <td class="table_td2" style="width: 199px">
                        <asp:Label ID="txtStartTime" runat="server" Text="Label" Width="163px"></asp:Label></td>
                    <td class="table_td3">
                        结束配送时间</td>
                    <td class="table_td2" style="width: 230px">
                        <asp:Label ID="txtEndTime" runat="server" Text="Label" Width="163px"></asp:Label></td>
                </tr>
                <tr>
                    <td class="table_td3" style="height: 24px; width: 143px;">
                        采购单状态：
                    </td>
                    <td class="table_td2" colspan="3" style="height: 24px; width: auto">
                        <asp:RadioButtonList ID="rdoBuyStatus" runat="server" 
                            RepeatDirection="Horizontal" readeronly 
                           >
                            <asp:ListItem Text=" 未采购" Value="0" Enabled="false"></asp:ListItem>
                            <asp:ListItem Text="已采购未提交" Value="1" Enabled="false"></asp:ListItem>
                            <asp:ListItem Text="已提交" Value="2" Enabled="false"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="table_td3" style="width: 143px; height: 12px;">
                        备注</td>
                    <td class="table_td2" colspan="3" style="height: 12px">
                        <asp:TextBox ID="txtRemarks" runat="server" Height="40px" TextMode="MultiLine" Width="534px"></asp:TextBox></td>
                </tr>
                <tr align="center">
                    <td class="table_td2" colspan="4">
                        <asp:Label ID="labSubmit" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
            </table>
            <p align="center">
                <font size='3' style="text-transform: none; color: blue; background-color: white">采购药品清单</font></p>
            <table width="98%" id="tabData1" border="1" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="right" style="height: 25px; width: 140px;">
                        通用名：</td>
                    <td style="width: 296px; height: 25px">
                        <asp:TextBox ID="txtProductName" runat="server" InvertedComma="通用名" Width="250px"></asp:TextBox>
                    </td>
                    <td align="right" style="height: 25px; width: 279px;">
                        药品流水号：
                    </td>
                    <td>
                        <asp:TextBox ID="txtGoodsId" runat="server" InvertedComma="流水号" NumericOnly="流水号"
                            Width="250px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" style="height: 25px; width: 148px;">
                        商品名：</td>
                    <td style="height: 25px">
                        <asp:TextBox ID="txtGoodsName" runat="server" Width="250px"></asp:TextBox>
                        </td>
                    <td align="right" style="height: 26px; width: 279px;">
                        生产企业编码：&nbsp;</td>
                    <td style="width: 296px; height: 26px" align="left">
                        <asp:TextBox ID="Textuscoder_sc" runat="server" InvertedComma="生产企业编码" Width="250px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" style="height: 26px; width: 148px;">
                        生产企业：</td>
                    <td align="left" style="height: 26px">
                        <asp:TextBox ID="textCompanyName_SC" runat="server" InvertedComma="生产企业" Width="250px"></asp:TextBox></td>
                    <td   style="width: 279px; height: 26px; text-align:right">
                        配送企业编码：</td>
                    <td style="width: 296px; height: 26px">
                        <asp:TextBox ID="Textuscoder_ps" runat="server" InvertedComma="配送企业编码" Width="250px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" style="height: 26px; width: 140px;">
                        配送企业：</td>
                    <td style="height: 26px">
                    <asp:TextBox ID="TextCompanyName_PS" runat="server" InvertedComma="配送企业" Width="250px"></asp:TextBox>
                        </td>
                    <td style="width: 279px; height: 26px; text-align:right" title="只列出前10次采购单">
                       复制采购单：</td>
                    <td style="height: 26px;" align="left" title="只列出前10次采购单">
                        <asp:DropDownList ID="PurchasePlanSele" runat="server" Width="249px" >
                        </asp:DropDownList>
                        &nbsp;&nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 140px; height: 26px">采购数量：
                    </td>
                    <td style="height: 26px">
                    <asp:TextBox ID="txtGoodsNum" runat="server" InvertedComma="采购数量" NumericOnly="采购数量"
                            Width="250px"></asp:TextBox>
                    </td>
                    <td style="width: 279px; height: 26px; color:red" align="center"><asp:Button ID="CopyPland" runat="server"  class="button_bg6" Text="复 制" Width="71px"  OnClientClick="javascript:return confirm('确认要复制采购单吗？')" OnClick="CopyPland_Click" />（只能复制到空采购单）</td>
                    <td align="center" style="height: 26px">
                        <asp:Button ID="found" runat="server" OnClientClick="javascript:return CheckForm1();"
                            class="button_bg6" Text="查　询" Width="71px"    />
                        &nbsp;&nbsp; &nbsp; &nbsp;
                        <input id="Button1" class="button_bg6" onclick="javascript:self.close();" type="button"
                            value="关 闭" /></td>
                </tr>
            </table>
            <table>
                <tr>
                    <td>
                        <uc1:DbPageFlip ID="DbPageFlip1" class="btn" runat="server" />
                    </td>
                    <td>
                        <asp:Label ID="labLink" runat="server" Text="Label"  Visible="true"></asp:Label></td>
                    <td>
                        <asp:Label ID="labDel" runat="server" Text="Label"></asp:Label>
                    </td>
                    <td style="width: 91px">
                        <asp:Button ID="ConfirmNum" runat="server" Text="确认采购量" class="button_bg6" Width="88px"
                            OnClick="ConfirmNum_Click" OnClientClick="javascript:return CheckForm();" Visible="False" /></td>
                    <td>
                        <asp:Label ID="labSave" runat="server" Text="Label" ForeColor="Red"></asp:Label>
                    </td>
                    <td style="width: 66px" >
                        <asp:Button ID="Button3" runat="server" class="button_bg6"  Text="到期未送货" OnClientClick="javascript:return confirm('确认未送货吗？')" Width="79px" OnClick="Button3_Click" Visible="false" /></td>
                    <td style="width: 56px">
              
                            <asp:Button ID="Button2" CssClass="button_bg6" Text="打印明细"  runat="server" OnClick="Button2_ServerClick" Width="55px" />
                            </td>
                </tr>
            </table>
            &nbsp;
            <table width="98%">
                <tr>
                    <td align="right">
                        &nbsp;&nbsp;&nbsp;&nbsp;<div style="display:none;"><span style="color: #FF3300; ">交易价格说明:</span>&nbsp;&nbsp;<span
                            style="width: 20px; color: Red; background-color: #000000;"></span>固定,默认挂网价&nbsp;&nbsp;<span
                                style="width: 20px; color: Red; background-color: #990099;"></span>可修改,低于挂网价&nbsp;&nbsp;<span
                                    style="width: 20px; background-color: #0033CC; color: Red;"></span>可修改,无限制</div>
                    </td>
                </tr>
            </table>
            <asp:Label ID="Lablist" runat="server" Text="Label">
                <table>
                    <tr>
                        <td>
                            <asp:GridView ID="GridView1" runat="server">
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </asp:Label><br />
        </div>
    </form>
</body>
</html>
